using System;
using System.Collections.Generic;
using System.Text;

namespace Bots.Index
{
    public class IndexFinder : Finder
    {
        protected override string Table
        {
            get { return "[Index]"; }
        }


        protected override Type DomainObjectType { get { return typeof(IndexEntity); } }

        protected override DomainObject LoadFromReader(System.Data.SqlClient.SqlDataReader reader)
        {
            IndexEntity index = new IndexEntity(reader.GetInt64(0));
            index.IndexID = reader.GetInt64(1);
            index.ObjectStatue = (ObjectStatue)reader.GetInt16(2);
            index.ObjectName = reader.GetString(3);
            return index;
        }
    }
}
